<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'timezone'); ?>
		<?php echo $form->textField($model,'timezone',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'timezone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'created_at'); ?>
		<?php echo $form->textField($model,'created_at'); ?>
		<?php echo $form->error($model,'created_at'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'updated_at'); ?>
		<?php echo $form->textField($model,'updated_at'); ?>
		<?php echo $form->error($model,'updated_at'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'amount'); ?>
		<?php echo $form->textField($model,'amount'); ?>
		<?php echo $form->error($model,'amount'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'currency'); ?>
		<?php echo $form->textField($model,'currency',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'currency'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tran_cert'); ?>
		<?php echo $form->textField($model,'tran_cert',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'tran_cert'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'active_code'); ?>
		<?php echo $form->textField($model,'active_code',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'active_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'active_time'); ?>
		<?php echo $form->textField($model,'active_time'); ?>
		<?php echo $form->error($model,'active_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'open_id'); ?>
		<?php echo $form->textArea($model,'open_id',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'open_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'open_service'); ?>
		<?php echo $form->textField($model,'open_service',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'open_service'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reset_code'); ?>
		<?php echo $form->textField($model,'reset_code',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'reset_code'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->